/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.io.ByteArrayOutputStream;
/*    */ import java.io.IOException;
/*    */ import java.nio.charset.StandardCharsets;
/*    */ import java.util.HashMap;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class pt {
/*    */   private byte[] w;
/*    */   private byte[] q;
/*    */   private Map<String, byte[]> g;
/*    */   
/* 15 */   public byte[] z() { return this.w; }
/* 16 */   public byte[] v() { return this.q; } public Map<String, byte[]> v() {
/* 17 */     return this.g;
/*    */   }
/*    */   public pt(String str1, String str2, List list, Map map) {
/* 20 */     this.w = str1.getBytes(StandardCharsets.UTF_8);
/* 21 */     this.q = str2.getBytes(StandardCharsets.UTF_8);
/* 22 */     this.g = (Map)new HashMap<>();
/* 23 */     for (qu qu : list) {
/* 24 */       ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
/*    */       try {
/* 26 */         ImageIO.write(qu.v(), "png", byteArrayOutputStream);
/* 27 */       } catch (IOException iOException) {
/* 28 */         iOException.printStackTrace();
/*    */       } 
/* 30 */       byte[] arrayOfByte = byteArrayOutputStream.toByteArray();
/* 31 */       this.g.put(qu.h(), arrayOfByte);
/* 32 */       this.g.put(qu.v(), arrayOfByte);
/* 33 */       if (map.containsKey(qu.v())) {
/* 34 */         byte[] arrayOfByte1 = ((String)map.get(qu.v())).getBytes(StandardCharsets.UTF_8);
/*    */         
/* 36 */         this.g.put(qu.h() + ".mcmeta", arrayOfByte1);
/* 37 */         this.g.put(qu.v() + ".mcmeta", arrayOfByte1);
/*    */       } 
/*    */       try {
/* 40 */         byteArrayOutputStream.close();
/* 41 */       } catch (IOException iOException) {}
/*    */     } 
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\pt.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */